package Content;
import java.sql.*;
import java.text.*;
public class ContentItem {
	private int content_id;
	private int board_id;
	private String id;
	private String title;
	private String content;
	private int hit;
	private Timestamp date;
	private Integer subject_id;
	private int reply_count;
	private int rownum;
	private int notice;
	public int getNotice() {
		return notice;
	}
	public void setNotice(int notice) {
		this.notice = notice;
	}
	public int getRownum() {
		return rownum;
	}
	public void setRownum(int rownum) {
		this.rownum = rownum;
	}
	static private SimpleDateFormat format1=
									new SimpleDateFormat("yyyy-MM-dd");
	static private SimpleDateFormat format2=
			new SimpleDateFormat("yyyy-MM-dd HH:mm");
	
	
	
	public String getDateShort(){
		
		return format1.format(date);
	}
	public String getDateLong(){
		
		return format2.format(date);
	}
	
	
	public int getContent_id() {
		return content_id;
	}
	public void setContent_id(int content_id) {
		this.content_id = content_id;
	}
	public int getBoard_id() {
		return board_id;
	}
	public void setBoard_id(int board_id) {
		this.board_id = board_id;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public int getHit() {
		return hit;
	}
	public void setHit(int hit) {
		this.hit = hit;
	}
	public Timestamp getDate() {
		return date;
	}
	public void setDate(Timestamp date) {
		this.date = date;
	}
	public Integer getSubject_id() {
		return subject_id;
	}
	public void setSubject_id(Integer subject_id) {
		this.subject_id = subject_id;
	}
	public int getReply_count() {
		return reply_count;
	}
	public void setReply_count(int reply_count) {
		this.reply_count = reply_count;
	}
	public static SimpleDateFormat getFormat1() {
		return format1;
	}
	public static void setFormat1(SimpleDateFormat format1) {
		ContentItem.format1 = format1;
	}
	public static SimpleDateFormat getFormat2() {
		return format2;
	}
	public static void setFormat2(SimpleDateFormat format2) {
		ContentItem.format2 = format2;
	}
	
	
}
